<layout name="inner"/>

<load href="__PUBLIC__/{:UIKIT}/css/components/datepicker.almost-flat.min.css"/> 
<load href="__PUBLIC__/{:UIKIT}/js/components/datepicker.min.js"/> 
<load href="__PUBLIC__/{:UIKIT}/js/components/lightbox.min.js"/> 
<form class="uk-form">
    <div class="uk-grid">
		<div class="uk-width-medium-1-4 uk-width-small-1-2">#:<input type="text" name="order_id" placeholder="" class="uk-width-1-1"></div>
		 <div class="uk-width-medium-1-4 uk-width-small-1-2">{$Think.lang.mh_id}:
			 <select name="mh">
		<option value="">--</option>
<volist name=":getObjectPro('ResellermerchantView','','','aff_id',$reseller_info['aff_id'])" id="vo">		
		<option value="{$vo.mh_id}">{$vo.mh_id}-{$vo.mh_email}</option>
 </volist>	
			 </select>
		 </div>
        <div class="uk-width-medium-1-4 uk-width-small-1-2">{$Think.lang.status}:<select name="order_status">
		<option value="">--</option>
<volist name="Think.lang.order_status" id="vo">		
		<option value="{$key}">{$vo}</option>
 </volist>		
		</select>
		</div>
		 <div class="uk-width-medium-1-4 uk-width-small-1-2">{$Think.lang.start_time}:<input type="text" name="order_time_start"  data-uk-datepicker="{format:'YYYY-MM-DD'}" placeholder="" class="uk-width-1-1"></div>
		  <div class="uk-width-medium-1-4 uk-width-small-1-2">{$Think.lang.end_time}:<input type="text" name="order_time_end"  data-uk-datepicker="{format:'YYYY-MM-DD'}" placeholder="" class="uk-width-1-1"></div>	    
    </div>
	<p>
<button type="submit" class="uk-button uk-button-danger">{$Think.lang.search}</button>
</p>
</form>
          <div class="uk-overflow-container">
            <table class="uk-table uk-table-hover uk-table-striped uk-table-condensed">
              <thead>
                <tr>
                  <th>#</th>
				  <th width=180>{$Think.lang.add_time}</th>
				  <th>{$Think.lang.mh_id}</th>
				  <th>{$Think.lang.order_amount}</th>
				  <th>{$Think.lang.email}</th>
				  <th>{$Think.lang.add_time}</th>
				  <th>{$Think.lang.commission}</th>
                </tr>
              </thead>
              <tbody>
				  <volist name="list" id="vo">
                <tr>
                  <td><a href="__CONTROLLER__/details/{$vo.order_id}">{$vo.order_id}</a>
				  <eq name="vo.ips_id" value="[TEST]">[TEST]</eq>
				  </td>
				  <td>{$vo.order_time}</td>
				    <td>{$vo.order_mid}</td>
					  <td>{$vo.order_amount}{$vo.order_currency}</td>
					    <td>{$vo.bill_email}</td>
						<td>{$vo.order_status|order_status=true}</td>
						<td>{$vo.aff_commission}</td>
                </tr>
			</volist>
              </tbody>
            </table>
			{$page}
          </div>